﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IPC.Communication.Framework.Core;

namespace IPC.Communication.Framework.ModBus
{
    public interface IModbus : IReadWriteDevice, IReadWriteNet
    {
        bool AddressStartWithZero
        {
            get;
            set;
        }

        byte Station
        {
            get;
            set;
        }

        DataFormat DataFormat
        {
            get;
            set;
        }

        bool IsStringReverse
        {
            get;
            set;
        }

        OperateResult<string> TranslateToModbusAddress(string address, byte modbusCode);
    }
}
